package com.primus.server.service.store.impl;

import com.primus.server.entity.store.Product;
import com.primus.server.repository.ProductRepository;
import com.primus.server.service.BaseServiceImpl;
import com.primus.server.service.store.ProductService;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends BaseServiceImpl<Product> implements ProductService {

    private final ProductRepository productRepository;


    ProductServiceImpl(ProductRepository productRepository) {
        this.productRepository = productRepository;
    }

    @Override
    protected JpaRepository<Product, Long> getRepository() {
        return this.productRepository;
    }
}
